home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Graphics / PerfectPaint / rexx / box / FastPaint.rx < prev    next >
Encoding:
Text File  |  2001-08-25  |  941 b   |  64 lines

  1. /* Box arexx test */
  2.  
  3.     options results
  4.   parse ARG Port x1 y1 x2 y2 b
  5.     ADDRESS value Port
  6.  
  7.     pp_GetDepth
  8.     D=result
  9.     IF D<24 then DO
  10.         pp_Warn 'This*script*is*only|for*24bits*Picture.'    
  11.         pp_PermitRefresh
  12.         Exit
  13.     END
  14.  
  15.     type=0
  16.     pp_DialogInit 150 60 "*FastPaint*" 1
  17.         pp_Cycle 0 50 8 70 16 "Type" 1 "1|2|3|4" type
  18.     pp_Dialog
  19.     rc=result
  20.     if rc=0 then
  21.         do
  22.             EXIT
  23.         end    
  24.  
  25.     pp_AvoidRefresh    
  26.     pp_Progresstext 'FastPaint'
  27.  
  28.     pp_GetDialog 0
  29.     type=result
  30.  
  31.     pp_UpdateUndoBox x1-1 y1-1 x2+1 y2+1
  32.  
  33.     pp_ComposeReqOff
  34.     pp_Compose 0 100 0
  35.  
  36.     pp_EffectOn
  37.     
  38.     pp_Mosaic (type+1)*4
  39.     pp_Progress 1 7
  40.     pp_BoxF x1 y1 x2 y2
  41.     pp_Displace (type+1)*5
  42.     pp_Progress 2 7
  43.     pp_BoxF x1 y1 x2 y2
  44.     pp_Median 2
  45.     pp_Progress 3 7
  46.     pp_BoxF x1 y1 x2 y2
  47.     pp_Maximum 1
  48.     pp_Progress 4 7
  49.     pp_BoxF x1 y1 x2 y2
  50.     pp_Displace 3
  51.     pp_Progress 5 7
  52.     pp_BoxF x1 y1 x2 y2
  53.     pp_Median 2
  54.     pp_Progress 6 7
  55.     pp_BoxF x1 y1 x2 y2
  56.  
  57.     pp_EffectOff
  58.     pp_ComposeReqOn
  59.  
  60.     pp_PermitRefresh
  61.     pp_ProgressClr
  62.  
  63.     Exit
  64.